package com.dream.vo.base;

import java.util.Date;

import org.apache.commons.lang.StringUtils;

import com.dream.utils.date.DateCalculateUtils;
import com.dream.utils.date.DateParseUtils;

public class QueryVO {
	
	private String startDate;
	
	private String endDate;

	public String getStartDate() {
		return startDate;
	}

	public void setStartDate(String startDate) {
		this.startDate = startDate;
	}

	public String getEndDate() {
		return endDate;
	}

	public void setEndDate(String endDate) {
		this.endDate = endDate;
	}
	
	public Date getStart(){
		
		if(StringUtils.isBlank(startDate)) return null;
		return DateCalculateUtils.toBeginPointDay(DateParseUtils.parseDate(startDate));
	}
	
	public Date getEnd(){
		
		if(StringUtils.isBlank(endDate)) return null;
		return DateCalculateUtils.toEndPointDay(DateParseUtils.parseDate(endDate));
	}
	

}
